<template>
    <div class="no-data-container">
        <img :src="notDataSrc" alt="">
        <h2 class="no-data-title">{{ title }}</h2>
        <p class="no-data-text">{{ content }}</p>
    </div>
</template>

<script setup>
import notDataSrc from "@/assets/not.webp";
import { defineProps } from "vue";
const { title, content } = defineProps({
    title: {
        type: String,
        default: ""
    },
    content: {
        type: String,
        default: ""
    }
})
</script>

<style lang="less" scoped>
.no-data-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.no-data-icon {
    width: 64px;
    height: 64px;
    fill: #ccc;
    margin-bottom: 20px;
}

.no-data-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.no-data-text {
    font-size: 16px;
    color: #666;
    text-align: center;
}
</style>